package com.ibo.htlivecamera.service;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;

import com.ibo.htlivecamera.launcher.AppsActivity;
import com.ibo.htlivecamera.socket.SimpleEvent;

import org.greenrobot.eventbus.EventBus;

public class BootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        System.out.println("#####      开机启动 : onReceive");
//        EventBus.getDefault().post(new SimpleEvent(SimpleEvent.RECAPTURE_CAMERA));


        Intent it = new Intent(context, AppsActivity.class);
        it.putExtra("from", "receiver");
        it.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(it);
    }
}
